//package core.beanpostprocessor;
//
//import bjut.core.exception.BeansException;
//import bjut.core.postprocessor.BeanPostProcessor;
//import core.bean.UserService;
//
///**
// * @Author: zhuzhiming
// * @Date: 2022/6/30 19:47
// */
//public class MyBeanPostProcessor implements BeanPostProcessor {
//    @Override
//    public Object postBeanPostProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
//
//        if ("userService".equals(beanName)) {
//            UserService userService = (UserService) bean;
//            userService.setLocation("北京");
//        }
//
//        return bean;
//    }
//
//    @Override
//    public Object postBeanPostProcessAfterInitialization(Object bean, String beanName) throws BeansException {
//        return bean;
//    }
//}
